package com.feri.fc.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 陪诊订单流水表(OrderLog)表实体类
 *
 * @author Feri
 * @since 2024-09-19 11:06:00
 */
@Data //简化类 自动生成 getter和 setter 和 toString
@TableName("t_order_log") //标记对应的表名
@NoArgsConstructor
public class OrderLog {
    //序号，主键
    @TableId(type = IdType.AUTO) //主键，设置自增方式
    private Integer id;
    //订单号
    private Integer oid;
    //状态
    private String status;
    //操作内容
    private String info;
    //创建时间
    private Date createTime;

    public OrderLog(Integer oid, String status, String info) {
        this.oid = oid;
        this.status = status;
        this.info = info;
        this.createTime=new Date();
    }
}